import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' 

//引入pinia
import { createPinia } from 'pinia'
//引入持久化插件
import {createPersistedState} from 'pinia-plugin-persistedstate'
// 创建pinia 实例
const pinia = createPinia()
//使用持久化
pinia.use(createPersistedState({storage:sessionStorage}))


createApp(App)
.use(router)
.use(ElementPlus)
.use(pinia)
.mount('#app')
